<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:decorate template="/layout/template2.xhtml">
        <ui:define name="centro">
            <h:form id="login"> 
            <h1 class="title ui-widget-header ui-corner-all">Entrar</h1>
               <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" /> 
            <p:panelGrid columns="2">  
                <f:facet name="header">  
                    Insira dados do login: 
                </f:facet>  
				
                <h:outputLabel for="login" value="Login: *" />  
                <p:inputText  id="login" value="#{loginBean.login.login}" label="Login" required="true" />  

                <h:outputLabel for="senha" value="Senha: *" />  
                <p:password  id="senha" value="#{loginBean.login.senha}" label="Senha" required="true" />  

                <f:facet name="footer">  
                    <p:commandButton type="Submit" value="Enviar" action="#{loginBean.login}" icon="ui-icon-check" style="margin:0"/>  
                </f:facet>  
           </p:panelGrid> 
           <br></br>
           <br></br>
           <br></br>
         </h:form>
        </ui:define>
    </ui:decorate>
</html>
